package com.itheima.d4_enum;

import org.junit.After;
import org.junit.Before;

import java.util.Random;
import java.util.Scanner;

public enum Season {
    SPRING("春意盎然"),SUMMER("夏日炎炎"),AUTUMN("秋高气爽"),WINTER("冬雪皑皑");
    private String desc;

    {

    }

    Season() {
    }

    Season(String desc) {
        this.desc = desc;
        System.out.println(this + ":" + desc);
    }

    public void printDesc(){
        System.out.println("我喜欢" + this.desc + "的" + this);
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }
}
